package com.west_traveler.tiyutoutiao.entity.recommend_entity;

import android.support.v4.view.PagerAdapter;

import com.google.gson.annotations.Expose;
import com.west_traveler.tiyutoutiao.R;
import com.west_traveler.tiyutoutiao.adapter.CommentPagerAdapter;

import java.util.List;

/**
 * Description:
 * created at 2016/12/16 20:10
 *
 * @author: 黄昌友
 */

public class DataBean {
    private int limit;
    private double head_version;
    private double data_version;
    private int notice_num;
    private int contest_ing_num;
    private List<TopsBean> tops;
    private List<ContentsBean> contents;
    private List<BannersBean> banners;
    private List<ContestListBean> contest_list;
    @Expose(serialize = false, deserialize = false)
    private PagerAdapter adapter;

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public double getHead_version() {
        return head_version;
    }

    public void setHead_version(double head_version) {
        this.head_version = head_version;
    }

    public double getData_version() {
        return data_version;
    }

    public void setData_version(double data_version) {
        this.data_version = data_version;
    }

    public int getNotice_num() {
        return notice_num;
    }

    public void setNotice_num(int notice_num) {
        this.notice_num = notice_num;
    }

    public int getContest_ing_num() {
        return contest_ing_num;
    }

    public void setContest_ing_num(int contest_ing_num) {
        this.contest_ing_num = contest_ing_num;
    }

    public List<TopsBean> getTops() {
        return tops;
    }

    public void setTops(List<TopsBean> tops) {
        this.tops = tops;
    }

    public List<ContentsBean> getContents() {
        return contents;
    }

    public void setContents(List<ContentsBean> contents) {
        this.contents = contents;
    }

    public List<BannersBean> getBanners() {
        return banners;
    }

    public void setBanners(List<BannersBean> banners) {
        this.banners = banners;
    }

    public List<ContestListBean> getContest_list() {
        return contest_list;
    }

    public void setContest_list(List<ContestListBean> contest_list) {
        this.contest_list = contest_list;
    }

    public PagerAdapter getAdapter() {
        if (adapter == null) {
            adapter = new CommentPagerAdapter<>(banners, R.layout.banner, com.west_traveler.tiyutoutiao.BR.image);
        }
        return adapter;
    }
}
